Skip to content

Spread out graph layout for large networks#4

Open
marcoloco23 wants to merge 3 commits intomainfrom
claude/add-mi-metrics-lKVGx
Open

Spread out graph layout for large networks#4
marcoloco23 wants to merge 3 commits intomainfrom
claude/add-mi-metrics-lKVGx

Conversation

@marcoloco23
Copy link
Copy Markdown
Owner

No description provided.

claude added 3 commits March 1, 2026 15:03
Users can now browse species at /browse with filters for COI sequence
availability, MI edge presence, extinct status, and sort by name or
edge count. Defaults to showing species with MI edges sorted by most
connections, making it easy to find species with genetic similarity data.

- GET /v1/species endpoint with has_sequences, has_edges, is_extinct,
  clade, and sort query params
- Frontend browse page with filter buttons, pagination, and species cards
  showing COI/MI badges
- Nav link "Species" added to header, "Browse Species" CTA on home page
- 13 backend tests, 12 frontend tests for the new feature

https://claude.ai/code/session_015FCj2G9CHpnsJqHcF3n8aw
Two fixes for navigability:

1. Species browse cards now show "Order > Family" (e.g. "Passeriformes >
   Corvidae") so you can see where a species fits without clicking through.
   Uses batch lineage lookup — one query for all ancestor family/order names.

2. Taxon detail children are now sorted by rank priority (orders first,
   then families, genera, species, subspecies) instead of purely
   alphabetical. For Aves with 729 children, this means the first 100
   shown are the orders and families you actually want to navigate, not
   a random mix of subspecies and environmental samples.

https://claude.ai/code/session_015FCj2G9CHpnsJqHcF3n8aw
The MI network (~620 nodes, 10k edges) was too tightly clustered.
ForceAtlas2 parameters now scale with node count:

- scalingRatio 40→120 for >300 nodes (stronger repulsion)
- gravity 0.08→0.02 (less center-pull)
- Initial positions spread 200→1200 (wider start)
- 200 iterations instead of 100 (more time to converge)
- adjustSizes enabled (prevents node overlap)

Small graphs (<300 nodes) keep the previous settings.

https://claude.ai/code/session_015FCj2G9CHpnsJqHcF3n8aw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants